import Layout from '@/layout'
import { Icon } from 'element-ui'

export default {
    path: '/employees',
    name: 'employees',

    component: Layout,
    children: [
        {
            path: '',//不写路径代表该路由为当前路由的默认路由
            component: () => import('@/views/employees'),
            name: 'employees',
            meta: {
                title: '员工',
                icon: 'people'
            }
        },
        {
            path: 'detail/:id', //  query传参，动态路由传参,如果没有传id这个参数是访问不了的
            component: () => import('@/views/employees/detail'),  //  懒加载
            hidden: true, //不在左侧菜单显示
            meta: {
                title: '员工详情'//标记当前路由规则的中文名称，后续做左侧菜单使用
            }
        },
        {
            path: 'print',
            component: () => import('@/views/employees/print'),
            hidden: true,
            meta: {
                title: '打印',
            }
        },
    ]
}